﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace ddb_BT1
{
    public partial class TSCD : DevExpress.XtraEditors.XtraForm
    {
        public TSCD()
        {
            InitializeComponent();

        }

        private void TSCD_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataHeThongThongTinKeToan.CHITIET_PHIEUNHAPHANGTRALAI' table. You can move, or remove it, as needed.
            this.cHITIET_PHIEUNHAPHANGTRALAITableAdapter.Fill(this.dataHeThongThongTinKeToan.CHITIET_PHIEUNHAPHANGTRALAI);
            // TODO: This line of code loads data into the 'dataHeThongThongTinKeToan.NHANVIEN' table. You can move, or remove it, as needed.
            this.nHANVIENTableAdapter.Fill(this.dataHeThongThongTinKeToan.NHANVIEN);
            // TODO: This line of code loads data into the 'dataHeThongThongTinKeToan.PHIEUNHAPHANGTRALAI' table. You can move, or remove it, as needed.
            this.pHIEUNHAPHANGTRALAITableAdapter.Fill(this.dataHeThongThongTinKeToan.PHIEUNHAPHANGTRALAI);

        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            this.pHIEUNHAPHANGTRALAITableAdapter.Update(this.dataHeThongThongTinKeToan);
            this.pHIEUNHAPHANGTRALAITableAdapter.InsertQueryTL(
        }

        private void btnxoa_Click(object sender, EventArgs e)
        {
            this.pHIEUNHAPHANGTRALAIBindingSource.RemoveCurrent();
        }

        private void searchLookUpEdit1_EditValueChanged(object sender, EventArgs e)
        {
            DataTable dt = (DataTable)lunhanvien.Properties.DataSource;
            
        }
         
    }
}